package com.tensquare.recruit.dao;

import com.tensquare.recruit.pojo.Enterprise;
import com.tensquare.recruit.pojo.Recruit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author:zimmor
 * @Date: 2021/2/28 19:55
 * @Description 招聘数据层
 * @version: 1.0.0
 */

public interface RecruitDao extends JpaRepository<Recruit, String>, JpaSpecificationExecutor<Recruit> {
    public List<Recruit> findByStateOrderByCreatetimeDesc(String state);
    public List<Recruit> findTop12ByStateNotOrderByCreatetimeDesc(String state);
}
